package com.hup.minicontroller.client.model;

import com.hup.minicontroller.common.constant.NetConstant.ConnectType;
import com.hup.minicontroller.common.model.dto.ControlConfigDto;

import lombok.Data;

/**
 *
 */
@Data
public class AppState {

    /**
     * 已连接的服务端的类型;
     * null-未连接
     */
    private ConnectType connectedType;
    /**
     * 已连接的服务端的设备名
     * null-未连接
     */
    private String serverName;
    /**
     * 局域网,已连接的服务端的ip
     */
    private String lanServerHost;


    private AppConfig appConfig = new AppConfig();

    private ControlConfigDto controlConfig = new ControlConfigDto();

    public void onDisconnect() {
        connectedType = null;
        serverName = null;
        lanServerHost = null;
    }

}
